Skip to content

feat: allow direct session resume across working directories#118

Open
kermanx wants to merge 3 commits into
mainfrom
feat/resume-cross-workdir-sessions
Open

feat: allow direct session resume across working directories#118
kermanx wants to merge 3 commits into
mainfrom
feat/resume-cross-workdir-sessions

Conversation

@kermanx
Copy link
Copy Markdown
Collaborator

@kermanx kermanx commented May 27, 2026

Related Issue

N/A

Problem

Previously, users could not directly resume a session that belonged to a different working directory. The session list was scoped to the current workDir, making it impossible to discover or switch to sessions created elsewhere.

What changed

  • Extended \SessionStore.list\ to support lookup by \sessionId, \workDir, or both, enabling cross-directory session discovery.
  • Added a new TUI startup state \cross-workdir-confirm\ that prompts the user for confirmation before switching to a session located in another working directory.
  • Updated RPC core API, node-sdk types, and harness to propagate the new session lookup options.
  • Added unit tests for cross-workdir session listing and TUI startup behavior.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran \gen-changesets\ skill, or this PR needs no changeset.
  • Ran \gen-docs\ skill, or this PR needs no doc update.

- Support querying sessions by sessionId, workDir, or both in SessionStore
- Add cross-workdir-confirm startup state in TUI
- Prompt user for confirmation when resuming a session from another directory
- Update RPC types and harness APIs
- Add tests for cross-workdir session listing and TUI startup
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 27, 2026

🦋 Changeset detected

Latest commit: a0fbe70

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@moonshot-ai/agent-core Minor
@moonshot-ai/kimi-code-sdk Minor
@moonshot-ai/kimi-code Minor
@moonshot-ai/migration-legacy Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 27, 2026

pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@a0fbe70
npx https://pkg.pr.new/@moonshot-ai/kimi-code@a0fbe70

commit: a0fbe70

kermanx added 2 commits May 27, 2026 21:01
…kdir-sessions

# Conflicts:
#	apps/kimi-code/src/tui/components/editor/custom-editor.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant